package com.ytxg.health_management.pojo.entity;

import com.ytxg.health_management.pojo.dto.UserDto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class Comments extends Page implements Serializable {
    private Integer id;
    private Integer articleId;
    private Integer userId;
    private String level;
    private Integer replyMainId;
    private Integer replyId;
    private Integer replyUserId;
    private String text;
    private Integer like;
    private Integer dislike;
    private Integer replyNumber;
    private Date createTime;
    private UserDto user;
    private UserDto replyUser;
    private List<Comments> replyList;
}
